volume-max=600
#msg-level="demux=no:ad=no:ffmpeg=no:ao=no"
#user-agent="Googlebot (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
#user-agent="Windows-Media-Player/11.0.5721.5145"
#user-agent="Mozilla/5.0 (Android; Mobile; rv:39.0) Gecko/39.0 Firefox/39.0"
#user-agent="mplayer"
user-agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:47.0) Gecko/20100101 Firefox/47.0'

# Save the video position on quit
save-position-on-quit=yes

# Use the vdpau driver for hardware decoding (for nvidia cards)
#hwdec=vdpau
#hwdec=auto

# Video output driver. A list can be displayed via: mpv -vo=help
#vo=vdpau
vo=vaapi,opengl

# Display Brazilian Portuguese subtitles if available.
slang = pt_BR

# Play Brazilian Portuguese audio if available.
alang = pt_BR

# Desligar proteção de tela
stop-screensaver = "yes"

# multithreaded decoding of H264/MPEG-1/2 (valid: 0-16)
#vd-lavc-threads = 2

#Scripts
load-scripts=yes

#Sound
#audio-channels=5.1
#af=channels=4:[0-1,1-0,0-2,1-3]
af=channels=6:[1-1,0-1,0-0,0-0,1-1,1-3]
#af=equalizer=4.3:3.3:0.0:-4.4:-2.9:1.0:4.8:6.7:7.2:7.2
#af=equalizer=6.2:6.2:3.3:3.3:0.0:-2.9:-2.9:-2.9:0.0:0.0
#af=equalizer=-2.9:0.0:2.4:3.3:3.3:3.3:2.4:1.4:1.4:1.4  #live
#af=equalizer=9:7:2:1:0:0:0:3:7:9
ad=spdif:ac3,spdif:dts,
#af=scaletempo,lavcac3enc=yes:640:3

af=format=spdif-truehd
#af=format=double
#af=volume=10.1
af=pan=3:[1,0,0.5,0,1,0.5]
af=format=channels=5.1
#af=delay=[10.5,10.5,0,0,7,0]


##Cache

cache=yes
cache-initial=0                         # start playback when your cache is filled up with x kB
cache-file=/home/pekman/.config/mpv/cache
cache-file-size=9000000
cache-default=5000000                   # size in KB
cache-backbuffer=25000                  # size in KB
cache-secs=50                           # how many seconds of audio/video to prefetch if the cache is active


[live]
profile-desc="Prevent A/V desync during live streams"
mc=0
autosync=4

hls-bitrate=max                         # use max quality for HLS streams
ytdl-format=bestvideo[height<=?1080][fps<=?30][vcodec!=?vp9][protocol!=http_dash_segments]+bestaudio/best #[protocol!=http_dash_segments][protocol!=rtmp]
